package day4;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class MAx3 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入第一个数");
        int a = input.nextInt();
        System.out.print("请输入第二个数");
        int b = input.nextInt();
        System.out.print("请输入第三个数");
        int c = input.nextInt();
        if (a>b){
            if (c>a){
                System.out.println(b+" "+a+" "+c);
            } else if (c<b) {
                System.out.println(c+" "+b+" "+a);
            }else {
                System.out.println(b+" "+c+" "+a);
            }
        }else {
            if (c>b){
                System.out.println(a+" "+b+" "+c);
            } else if (c<a) {
                System.out.println(c+" "+a+" "+b);
            }else {
                System.out.println(a+" "+c+" "+b);
            }
        }
    }
}
